#include <iostream.h>
void main()
    {
        float num1;
        float num2;
        char op;
        float ans;
        cout << "Prosty kalkulator" << endl;
        cout << "Podaj dwie liczby, aby wykona operacj" << endl;
        cout << "Miego korzystania z programu!" << endl;
        cout << "------------------------------" << endl;
        cout << "Podaj pierwsz liczb i wcinij ENTER:" << endl;
        cin  >> num1;
        cout << "Podaj drug liczb i wcinij ENTER:" << endl;
        cin  >> num2;
        cout << "Wcinij A, aby doda dwie liczby."
             << endl
             << "Wcinij S, aby odj dwie liczby od siebie."
             << endl 
             << "Wcinij M, aby pomnoy dwie liczby."
             << endl
             << "Wcinij D, aby podzieli dwie liczby."
             << endl;
        cout << "------------------------------" << endl;
        cin >> op;
    if (op == 65)
        ans = num1 + num2;
    if (op == 83)
        ans = num1 - num2;
    if (op == 77)
        ans = num1 * num2;
    if (op == 68)
        ans = num1 / num2;
    cout << ans << endl;
}
